<!--
 * @Descripttion: 
 * @version: 
 * @Author: EayCome
 * @Date: 2021-02-10 11:29:06
 * @LastEditors: EayCome
 * @LastEditTime: 2021-02-10 11:39:22
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>检查类型</title>
    <script src="myInstance.js"></script>
</head>

<body>
    <script>
        // 声明一个构造函数
        function Person() {

        }
        let p = new Person();
        // 检测
        // console.log(p instanceof Person)
        // console.log(myInstance('123', Number))
        // console.log(myInstance(Person, Function))
        // console.log(myInstance(p, Function))
    </script>
</body>

</html>